export default () => async (ctx, next) => {
    console.log(`[请求参数] === path：${ctx.path} query：${JSON.stringify(ctx.request.query)}，body：${JSON.stringify(ctx.request.body)}`)
    try {
        await next()
    } catch (e) {
        console.log(`系统异常，${ctx.path}  ${e.message}`)
        ctx.body = {
            success: false,
            message: `系统异常，${e.message}`
        }
    }
}